package com.tourism.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("tour_route_spot")
public class TourRouteSpot {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer routeId;    // 路线ID
    private Integer spotId;     // 景点ID
    private Integer orderNum;   // 排序号
    private BigDecimal visitDuration; // 建议游玩时长
    private String description; // 备注说明

    @TableField(exist = false)
    private ScenicSpot scenicSpot; // 关联的景点信息
}